package com.czk.model.adaptor.objectadaptor;

public class ObjectAdaptor implements Voltage5{
    private Voltage220 voltage220;
    public ObjectAdaptor(){};
    public ObjectAdaptor(Voltage220 voltage220){
        this.voltage220=voltage220;
    }
    @Override
    public int output5() {
        int dist=0;
        if (voltage220!=null){
            dist=voltage220.output()/44;
            System.out.println("输出5v");
        }
        return dist;
    }
}
